package com.bjfu.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bjfu.common_utils.vo.CourseWebVo;
import com.bjfu.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bjfu.eduservice.entity.frontvo.CourseFrontVo;
import com.bjfu.eduservice.entity.vo.CourseInfoVo;
import com.bjfu.eduservice.entity.vo.CoursePublishVo;
import com.bjfu.eduservice.entity.vo.CourseQuery;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Guli
 * @since 2020-07-04
 */
public interface EduCourseService extends IService<EduCourse> {
    String saveCourse(CourseInfoVo courseInfoVo);
    CourseInfoVo getCourseInfo(String courseId);
    void updateCourseInfo(CourseInfoVo courseInfoVo);
    CoursePublishVo getPublishCourseInfo(String courseId);
    // 管理控制台获取课程列表
    void getCourseListByPage(Page page, CourseQuery courseQuery);
    // 通过id删除课程
    void deleteCourseById(String courseId);
    // 前台获取课程分页
    Map<String, Object> getCourseFrontList(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);
    // 前台获取课程详情信息
    CourseWebVo getCourseFrontInfo(String id);
}
